
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cha"></use>
                    </svg>
                    <div class="name">叉</div>
                    <div class="fontclass">#icon-cha</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-loading"></use>
                    </svg>
                    <div class="name">loading</div>
                    <div class="fontclass">#icon-loading</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tenant"></use>
                    </svg>
                    <div class="name">4租客</div>
                    <div class="fontclass">#icon-tenant</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-home"></use>
                    </svg>
                    <div class="name">1首页</div>
                    <div class="fontclass">#icon-home</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-houses"></use>
                    </svg>
                    <div class="name">2房源</div>
                    <div class="fontclass">#icon-houses</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-services"></use>
                    </svg>
                    <div class="name">5服务</div>
                    <div class="fontclass">#icon-services</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-devices"></use>
                    </svg>
                    <div class="name">3设备</div>
                    <div class="fontclass">#icon-devices</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stores"></use>
                    </svg>
                    <div class="name">6门店</div>
                    <div class="fontclass">#icon-stores</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-reporting"></use>
                    </svg>
                    <div class="name">7报表</div>
                    <div class="fontclass">#icon-reporting</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-log"></use>
                    </svg>
                    <div class="name">8日志</div>
                    <div class="fontclass">#icon-log</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fund"></use>
                    </svg>
                    <div class="name">9资金</div>
                    <div class="fontclass">#icon-fund</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qrcode"></use>
                    </svg>
                    <div class="name">11手机二维码</div>
                    <div class="fontclass">#icon-qrcode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-lock"></use>
                    </svg>
                    <div class="name">12门锁在线</div>
                    <div class="fontclass">#icon-lock</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-lock-offline"></use>
                    </svg>
                    <div class="name">13门锁离线</div>
                    <div class="fontclass">#icon-lock-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-config"></use>
                    </svg>
                    <div class="name">10配置</div>
                    <div class="fontclass">#icon-config</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-lock-error"></use>
                    </svg>
                    <div class="name">14门锁地电量（异常）</div>
                    <div class="fontclass">#icon-lock-error</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ammeter"></use>
                    </svg>
                    <div class="name">15电表在线</div>
                    <div class="fontclass">#icon-ammeter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ammeter-offline"></use>
                    </svg>
                    <div class="name">16电表离线</div>
                    <div class="fontclass">#icon-ammeter-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cold-w-meter"></use>
                    </svg>
                    <div class="name">18冷水表正常</div>
                    <div class="fontclass">#icon-cold-w-meter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ammeter-error"></use>
                    </svg>
                    <div class="name">17电表异常</div>
                    <div class="fontclass">#icon-ammeter-error</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hot-w-meter"></use>
                    </svg>
                    <div class="name">20热水表正常</div>
                    <div class="fontclass">#icon-hot-w-meter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hot-w-meter-offline"></use>
                    </svg>
                    <div class="name">21热水表离线</div>
                    <div class="fontclass">#icon-hot-w-meter-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gateway-offline"></use>
                    </svg>
                    <div class="name">23网关离线</div>
                    <div class="fontclass">#icon-gateway-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-door-error"></use>
                    </svg>
                    <div class="name">24长时间未开门</div>
                    <div class="fontclass">#icon-door-error</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gateway"></use>
                    </svg>
                    <div class="name">22网关在线</div>
                    <div class="fontclass">#icon-gateway</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-staff"></use>
                    </svg>
                    <div class="name">25人员</div>
                    <div class="fontclass">#icon-staff</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cold-w-meter-offline"></use>
                    </svg>
                    <div class="name">19冷水表离线</div>
                    <div class="fontclass">#icon-cold-w-meter-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-access-control"></use>
                    </svg>
                    <div class="name">26门禁正常</div>
                    <div class="fontclass">#icon-access-control</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-access-control-offline"></use>
                    </svg>
                    <div class="name">27</div>
                    <div class="fontclass">#icon-access-control-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ammeter-collector"></use>
                    </svg>
                    <div class="name">29电表采集器</div>
                    <div class="fontclass">#icon-ammeter-collector</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-access-control-error"></use>
                    </svg>
                    <div class="name">28</div>
                    <div class="fontclass">#icon-access-control-error</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-rent-like"></use>
                    </svg>
                    <div class="name">32疑似出租</div>
                    <div class="fontclass">#icon-rent-like</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-rent-deadline"></use>
                    </svg>
                    <div class="name">33租约即将到期</div>
                    <div class="fontclass">#icon-rent-deadline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-rented"></use>
                    </svg>
                    <div class="name">31以出租</div>
                    <div class="fontclass">#icon-rented</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-copy"></use>
                    </svg>
                    <div class="name">36复制</div>
                    <div class="fontclass">#icon-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-over-insured"></use>
                    </svg>
                    <div class="name">34设备过保</div>
                    <div class="fontclass">#icon-over-insured</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-error-offline"></use>
                    </svg>
                    <div class="name">35异常离线</div>
                    <div class="fontclass">#icon-error-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ammeter-collector-offline"></use>
                    </svg>
                    <div class="name">30电表采集器离线</div>
                    <div class="fontclass">#icon-ammeter-collector-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-help-center"></use>
                    </svg>
                    <div class="name">38帮助中心</div>
                    <div class="fontclass">#icon-help-center</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-down"></use>
                    </svg>
                    <div class="name">41向下</div>
                    <div class="fontclass">#icon-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-Frozen"></use>
                    </svg>
                    <div class="name">39以冻结</div>
                    <div class="fontclass">#icon-Frozen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-up"></use>
                    </svg>
                    <div class="name">40向上</div>
                    <div class="fontclass">#icon-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-message-center"></use>
                    </svg>
                    <div class="name">37消息中心</div>
                    <div class="fontclass">#icon-message-center</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-up-active"></use>
                    </svg>
                    <div class="name">向上反白</div>
                    <div class="fontclass">#icon-up-active</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-down-active"></use>
                    </svg>
                    <div class="name">向下反白</div>
                    <div class="fontclass">#icon-down-active</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-w-gateway"></use>
                    </svg>
                    <div class="name">水表网关在线</div>
                    <div class="fontclass">#icon-w-gateway</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-w-gateway-offline"></use>
                    </svg>
                    <div class="name">水表网关离线</div>
                    <div class="fontclass">#icon-w-gateway-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-SAASguifanUI_fuzhi-"></use>
                    </svg>
                    <div class="name">SAAS 规范UI_复制-46</div>
                    <div class="fontclass">#icon-SAASguifanUI_fuzhi-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-SAASguifanUI_fuzhi-1"></use>
                    </svg>
                    <div class="name">SAAS 规范UI_复制-47</div>
                    <div class="fontclass">#icon-SAASguifanUI_fuzhi-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fangjianyourenyichangzhuangtai"></use>
                    </svg>
                    <div class="name">房间有人异常状态</div>
                    <div class="fontclass">#icon-fangjianyourenyichangzhuangtai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fangjianyourenzhengchangzhuangtai"></use>
                    </svg>
                    <div class="name">房间有人正常状态</div>
                    <div class="fontclass">#icon-fangjianyourenzhengchangzhuangtai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fangjianyourenwushebeizhuangtai"></use>
                    </svg>
                    <div class="name">房间有人无设备状态</div>
                    <div class="fontclass">#icon-fangjianyourenwushebeizhuangtai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appfuwu"></use>
                    </svg>
                    <div class="name">app 服务</div>
                    <div class="fontclass">#icon-appfuwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appfuwudianji"></use>
                    </svg>
                    <div class="name">app 服务 点击</div>
                    <div class="fontclass">#icon-appfuwudianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appshebeidianji"></use>
                    </svg>
                    <div class="name">app 设备点击</div>
                    <div class="fontclass">#icon-appshebeidianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appwodedianji"></use>
                    </svg>
                    <div class="name">app 我的点击</div>
                    <div class="fontclass">#icon-appwodedianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appwode"></use>
                    </svg>
                    <div class="name">app 我的</div>
                    <div class="fontclass">#icon-appwode</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appshebei"></use>
                    </svg>
                    <div class="name">app设备</div>
                    <div class="fontclass">#icon-appshebei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appzuwudianji"></use>
                    </svg>
                    <div class="name">app 租务点击</div>
                    <div class="fontclass">#icon-appzuwudianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appshouyedianji"></use>
                    </svg>
                    <div class="name">app首页点击</div>
                    <div class="fontclass">#icon-appshouyedianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appzuwu"></use>
                    </svg>
                    <div class="name">app租务</div>
                    <div class="fontclass">#icon-appzuwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-appshouye"></use>
                    </svg>
                    <div class="name">app首页</div>
                    <div class="fontclass">#icon-appshouye</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-copy-active"></use>
                    </svg>
                    <div class="name">36复制</div>
                    <div class="fontclass">#icon-copy-active</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-repeater-offline"></use>
                    </svg>
                    <div class="name">repeater-offline</div>
                    <div class="fontclass">#icon-repeater-offline</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-repeater"></use>
                    </svg>
                    <div class="name">saas repeater</div>
                    <div class="fontclass">#icon-repeater</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tenant1"></use>
                    </svg>
                    <div class="name">4租客</div>
                    <div class="fontclass">#icon-tenant1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-home1"></use>
                    </svg>
                    <div class="name">1首页</div>
                    <div class="fontclass">#icon-home1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-houses1"></use>
                    </svg>
                    <div class="name">2房源</div>
                    <div class="fontclass">#icon-houses1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-services1"></use>
                    </svg>
                    <div class="name">5服务</div>
                    <div class="fontclass">#icon-services1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-devices1"></use>
                    </svg>
                    <div class="name">3设备</div>
                    <div class="fontclass">#icon-devices1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-stores1"></use>
                    </svg>
                    <div class="name">6门店</div>
                    <div class="fontclass">#icon-stores1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-reporting1"></use>
                    </svg>
                    <div class="name">7报表</div>
                    <div class="fontclass">#icon-reporting1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-log1"></use>
                    </svg>
                    <div class="name">8日志</div>
                    <div class="fontclass">#icon-log1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fund1"></use>
                    </svg>
                    <div class="name">9资金</div>
                    <div class="fontclass">#icon-fund1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-config1"></use>
                    </svg>
                    <div class="name">10配置</div>
                    <div class="fontclass">#icon-config1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-staff1"></use>
                    </svg>
                    <div class="name">25人员</div>
                    <div class="fontclass">#icon-staff1</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
